
package com.yuanmei.model;

import com.yuanmei.common.Utils;

import io.realm.RealmObject;
import io.realm.annotations.PrimaryKey;

public class TradeCalender extends RealmObject {
    @PrimaryKey
    private int date;

    private int isOpen;

    public int getDate() {
        return this.date;
    }

    public void setDate(int date) {
        this.date = date;
    }

    public void setIsOpen(int isOpen) {
        this.isOpen = isOpen;
    }
    int getIsOpen() {
        return this.isOpen;
    }

    public TradeCalender() {
        super();
    }

    TradeCalender(String date, int isOpen) {
        this.date = Utils.parseTuShareFormatDate(date);
        this.isOpen = isOpen;
    }

}
